import request from '@/utils/request'

// 获取所有轮播图
export function getFocusList() {
  return request({
    url: '/v1/admin/focus/',
    method: 'get'
  })
}

// 删除轮播图
export function delFocus(params) {
  return request({
    url: '/v1/admin/focus/' + params,
    method: 'delete'
    // params: {
    //   'id': params
    // }
  })
}

// 添加轮播图
export function addFocus(params) {
  return request({
    url: '/v1/admin/focus/',
    method: 'post',
    params
  })
}
// 编辑轮播图
export function editFocus(params) {
  return request({
    url: '/v1/admin/focus/',
    method: 'put',
    params
  })
}
